<template>
  <CloudPagination simple :current="current" :total="50" @change="changePage"/>
</template>
<script>
export default {
  title: '7.简洁',
  data () {
    return {
      current: 1,
      pageSize: 20
    }
  },
  methods: {
    changePage(pageNumber) {
      console.log('Page: ', pageNumber);
      this.current = pageNumber
    },
    onShowSizeChange(current, pageSize) {
      console.log(current, pageSize);
      this.pageSize = pageSize;
    },
  }
}
</script>
